package com.cy;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.UUID;

@SpringBootTest
public class MD5Tests {
    @Test
   public void  testMD501(){
        String pwd="123";
        String salt= UUID.randomUUID().toString();
        SimpleHash simpleHash = new SimpleHash("MD5",pwd,salt);
        pwd=simpleHash.toHex();
        System.out.println(pwd);
    }
}
